package com.dys.mvpstudy;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.dys.mvpstudy.mvp.MVPActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn_start).setOnClickListener(v -> {
            // mvp模式
           Intent intent = new Intent(MainActivity.this, MVPActivity.class);
            MainActivity.this.startActivity(intent);
        });
    }
}